        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td><link rel="stylesheet" href="<?=base_url('menus')?>styles/menu.css" type="text/css">
                <link rel="stylesheet" href="<?=base_url('menus')?>styles/theme.css" type="text/css">
                <script language="JavaScript" type="text/javascript">
                    var cmThemeOfficeBase = '<?=base_url('menus')?>styles/ThemeOffice/';
                </script>
                <script language="JavaScript" src="<?=base_url('menus')?>scripts/JSCookMenu_mini.js" type="text/javascript"></script>
                <script language="JavaScript" src="<?=base_url('menus')?>scripts/theme.js" type="text/javascript"></script>
                <table class="menubar" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <?foreach($menus as $menu){?>
                    <td>
                        <div id="myMenuID_top_<?=$menu->id?>"></div>
                        <script language="JavaScript" type="text/javascript">
                            var myMenu =
                            [
                                ['','&nbsp;<?=h(addslashes($menu->name))?>',<?=empty($menu->admin_menu_link)?'null':'\''.site_url('admin/'.h($menu->admin_menu_link)).'\''?>,null,'<?=h(addslashes($menu->name))?>',
<?foreach($menu->children as $child){?>
                                    ['<img width="16" src="<?=base_url('menus')?>styles/ThemeOffice/<?if(empty($child->admin_menu_img)){echo 'component.png';}else{echo h($child->admin_menu_img);}?>" />','&nbsp;<?=h(addslashes($child->name))?>',<?=empty($child->admin_menu_link)?'null':'\''.site_url('admin/'.h($child->admin_menu_link)).'\''?>,null,'<?=h(addslashes($child->name))?>',
<?foreach($child->children as $c){?>
                                        ['<img width="16" src="<?=base_url('menus')?>styles/ThemeOffice/<?if(empty($c->admin_menu_img)){echo 'component.png';}else{echo h($c->admin_menu_img);}?>" />','&nbsp;<?=h(addslashes($c->name))?>',<?=empty($c->admin_menu_link)?'null':'\''.site_url('admin/'.h($c->admin_menu_link)).'\''?>,null,'<?=h(addslashes($c->name))?>'],
<?}?>
                                    ],
<?}?>
                                ],
                            ];
                            cmDraw ('myMenuID_top_<?=$menu->id?>', myMenu, 'hbr', cmThemeOffice, 'ThemeOffice');
                        </script>
                    </td>
                    <td></td>
                    <td style="padding-bottom: 4px; padding-left: 1px; padding-right: 1px;" align="center" valign="middle">|</td>
                    <?}?>
                  </tr>
                </table>
            </td>
            <td width="100%"></td>
            <td>
                <table class="menubar" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td>        
                    <div id="myMenuID_logout"><table summary="main menu" class="ThemeOfficeMenu" cellspacing="0"><tr><td class="ThemeOfficeMainItem" onmouseover="cmItemMouseOverOpenSub (this,'ThemeOffice',1,null,'hbr',61)" onmousedown="cmItemMouseDown (this,61)" onmouseout="cmItemMouseOut (this,500)" onmouseup="cmItemMouseUp (this,61)"><span class="ThemeOfficeMainItemLeft"></span><span class="ThemeOfficeMainItemText">&nbsp;LOGOUT</span><span class="ThemeOfficeMainItemRight">&nbsp;</span></td></tr></table></div>
                        <script language="JavaScript" type="text/javascript">
                            var myMenu =
                            [
                                    ['','&nbsp;LOGOUT','<?=site_url()?>admin/home.login.<?=isset($is_supperadmin)?'s_':''?>logout',null,'LOGOUT'
                                    ],

                            ];
                            cmDraw ('myMenuID_logout', myMenu, 'hbr', cmThemeOffice, 'ThemeOffice');
                        </script>
                    </td>
                    <td></td>
                    <?if(!isset($is_supperadmin)){?>
                    <td style="padding-bottom: 4px; padding-left: 1px; padding-right: 1px;" align="center" valign="middle">|</td>

                    <td>        
                      
                      <div id="myMenuID_viewsite"><table summary="main menu" class="ThemeOfficeMenu" cellspacing="0"><tr><td class="ThemeOfficeMainItem" onmouseover="cmItemMouseOverOpenSub (this,'ThemeOffice',1,null,'hbr',62)" onmousedown="cmItemMouseDown (this,62)" onmouseout="cmItemMouseOut (this,500)" onmouseup="cmItemMouseUp (this,62)"><span class="ThemeOfficeMainItemLeft"></span><span class="ThemeOfficeMainItemText">&nbsp;VIEW SITE</span><span class="ThemeOfficeMainItemRight">&nbsp;</span></td></tr></table></div>
                        <script language="JavaScript" type="text/javascript">
                            var myMenu =
                            [
                                    ['','&nbsp;VIEW SITE','<?=site_url()?>?fid=<?=$admin_id?>','_blank','VIEW SITE'
                                    ],

                            ];
                            cmDraw ('myMenuID_viewsite', myMenu, 'hbr', cmThemeOffice, 'ThemeOffice');
                        </script>
                      
                    </td>
                    <?}?>
                  </tr>
                </table>
            </td>
          </tr>
        </table>